package com.mystudy.concurrent.designModel.immutableModel;

import lombok.Getter;
import lombok.ToString;

/**
 * TODO: 不可变的person类。因为没有对应的修改方法（set方法），使用final修饰类跟字段
 *
 * @author acy
 * @since 2019/05/29 15:27
 */
@Getter
@ToString
final public class ImmutablePerson {
	private final String name;
	private final String address;

	public ImmutablePerson(String name, String address) {
		this.name = name;
		this.address = address;
	}
}
